import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import Home from "../views/Home.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/lion",
    name: "Lion",
    component: () => import("@/views/Lion/index.vue"),
  },
  {
    path: "/lantern",
    name: "Lantern",
    component: () => import("@/views/Lantern/index.vue"),
  },
  {
    path: "/Logo",
    name: "Logo",
    component: () => import("@/views/Logo/Logo.vue"),
  },
  {
    path: "/Hongbao",
    name: "Hongbao",
    component: () => import("@/views/Hongbao/index.vue"),
  },
  {
    path: "/vector3",
    name: "Vector3",
    component: () => import("@/views/Vector3/vector3.vue"),
  },
  {
    path: "/about",
    name: "About",
    component: () => import("@/views/About.vue"),
  },
  {
    path: "/demo01",
    name: "Demo01",
    component: () => import("@/views/Demo01/Demo01.vue"),
  },
  {
    path: "/demo02",
    name: "Demo02",
    component: () => import("@/views/Demo02/Demo02.vue"),
  },
  {
    path: "/demo03",
    name: "Demo03",
    component: () => import("@/views/Demo03/Demo03.vue"),
  },
  {
    path: "/demo04",
    name: "Demo04",
    component: () => import("@/views/Demo04/Demo04.vue"),
  },
  {
    path: "/demo05",
    name: "Demo05",
    component: () => import("@/views/Demo05/Demo05.vue"),
  },
  {
    path: "/demo06",
    name: "Demo06",
    component: () => import("@/views/Demo06/Demo06.vue"),
  },
  {
    path: "/demo07",
    name: "Demo07",
    component: () => import("@/views/Demo07/Demo07.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
